home *** CD-ROM | disk | FTP | other *** search
- function decodeMacPath(s)
- {
- var _loc3_ = [["\\","/"]];
- var _loc1_ = 0;
- while(_loc1_ < _loc3_.length)
- {
- var _loc5_ = s.toLowerCase();
- var _loc2_ = 0;
- var _loc6_ = 0;
- while(_loc5_.indexOf(_loc3_[_loc1_][0],_loc2_ + _loc6_) != -1)
- {
- _loc2_ = _loc5_.indexOf(_loc3_[_loc1_][0],_loc2_ + _loc6_);
- s = s.substring(0,_loc2_) + _loc3_[_loc1_][1] + s.substr(_loc2_ + _loc3_[_loc1_][0].length);
- _loc5_ = s.toLowerCase();
- _loc6_ = _loc3_[_loc1_][1].length;
- }
- _loc1_ = _loc1_ + 1;
- }
- return s;
- }
- function openFolder(arg)
- {
- if(client_os == "Mac")
- {
- arg = decodeMacPath(arg);
- }
- file_path = appdir + wfiles_folder + arg;
- mdm.System.exec(file_path);
- }
- function openImage(arg)
- {
- if(client_os == "Mac")
- {
- arg = decodeMacPath(arg);
- }
- file_path = appdir + arg;
- mdm.System.exec(file_path);
- }
- function saveFile(__path, __content)
- {
- mdm.FileSystem.saveFileUnicode(__path,__content);
- }
-